<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditProductDefinitionFieldBaseProperties.ascx.cs" Inherits="UCommerce.Web.UI.Settings.Definitions.EditProductDefinitionFieldBaseProperties" %>
<%@ Register tagPrefix="commerce" tagName="ValidationSummary" src="../../Controls/ValidationSummaryDisplay.ascx" %>

<commerce:ValidationSummary ID="ValidationSummary1" runat="server" />
<div class="propertyPane">
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize1" runat="server" meta:resourceKey="Name" />
        </div>
        <div class="propertyItemContent">
            <asp:TextBox runat="server" ID="NameTextBox" Text="<%# View.ProductDefinitionField.Name %>" CssClass="mediumWidth" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NameTextBox" Text="*" ErrorMessage='<%# GetLocalResourceObject("Name.Text") %>' CssClass="validator" Display="Dynamic" />
            <asp:CustomValidator ID="CustomValidator1" runat="server" Text="*" ErrorMessage='<%# GetLocalResourceObject("Name.Text") %>' CssClass="validator" OnServerValidate="NameValidator_ServerValidate" Display="Dynamic" />
            <asp:RegularExpressionValidator meta:ResourceKey="NameValidator" ID="NameValidator" ControlToValidate="NameTextBox" ValidationExpression="^(?!(xml|[_\d\W]))[^ \s\W]+$" Text="Name can contain only letters and numbers(*)." Display="Dynamic" runat="server" />
        </div>
    </div>
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize2" runat="server" meta:resourceKey="DataType" />
        </div>
        <div class="propertyItemContent">
            <asp:DropDownList runat="server" ID="DataTypeDropDown" DataSource="<%# View.DataTypes %>" DataValueField="DataTypeId" DataTextField="TypeName" OnDataBound="DataTypeDropDown_DataBound" CssClass="mediumWidth" />
        </div>
    </div>
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize3" runat="server" meta:resourceKey="Multilingual" />
        </div>
        <div class="propertyItemContent">
            <asp:CheckBox runat="server" ID="MultilingualCheckBox" Checked="<%# View.ProductDefinitionField.Multilingual %>" />
        </div>
    </div>
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize4" runat="server" meta:resourceKey="DisplayOnSite" />
        </div>
        <div class="propertyItemContent">
            <asp:CheckBox runat="server" ID="DisplayOnSiteCheckBox" Checked="<%# View.ProductDefinitionField.DisplayOnSite %>" />
        </div>
    </div>
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize5" runat="server" meta:resourceKey="VariantProperty" />
        </div>
        <div class="propertyItemContent">
            <asp:CheckBox runat="server" ID="VariantPropertyCheckBox" Checked="<%# View.ProductDefinitionField.IsVariantProperty %>" />
        </div>
    </div>
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize6" runat="server" meta:resourceKey="RenderInEditor" />
        </div>
        <div class="propertyItemContent">
            <asp:CheckBox runat="server" ID="RenderInEditorCheckBox" Checked="<%# View.ProductDefinitionField.RenderInEditor %>" />
        </div>
    </div>
    <div class="propertyPaneFooter"></div>
</div>